package com.ruoyi.classai.mapper;


import com.ruoyi.classai.domain.EwcChapterTeachingResources;
import com.ruoyi.classai.domain.vo.LearningAnalytics.AnalyticsStuConditionVo;
import com.ruoyi.classai.domain.vo.LearningAnalytics.AnalyticsStuCountVo;
import com.ruoyi.classai.domain.vo.LearningAnalytics.AnalyticsStuScoreVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface LearningStatisticsMapper {
    AnalyticsStuCountVo getAnalyticsStuCount (@Param("courseId")String courseId,
                                              @Param("chapterId")String chapterId,
                                              @Param("classId")String classId);

    AnalyticsStuScoreVo getAnalyticsStuScore(@Param("courseId")String courseId,
                                             @Param("chapterId")String chapterId,
                                             @Param("classId")String classId,
                                             @Param("passScore")Integer passScore,
                                             @Param("excellentScore")Integer excellentScore,
                                             @Param("reachScore")Integer reachScore,
                                             @Param("correctStatus")String correctStatus,
                                             @Param("moduleCode")String moduleCode);

    List<AnalyticsStuConditionVo> getAnalyticsStuCondition(@Param("courseId")String courseId,
                                                           @Param("classId")String classId,
                                                           @Param("highScore")Integer highScore,
                                                           @Param("lowScore")Integer lowScore);

    EwcChapterTeachingResources getAnalyticsAISuggestion(@Param("courseId")String courseId,
                                                         @Param("classId")String classId,
                                                         @Param("chapterId")String chapterId);
}